package com.jhws.core.log.service;

import com.aliyun.openservices.log.exception.LogException;

import java.util.List;
import java.util.Map;

public interface ILogService {
    int DAY = 0;
    int HOUR = 1;
    abstract public Map<String, Object> getLogsCount(String logStore,String topic,String commCode,int timeStart, int timeEnd, int sliceMode) throws Exception;
    abstract public long getLogsTotalCount(String logstore,String topic,Integer timeStart,Integer timeEnd,String query) throws Exception;
    abstract public Map<String,Object> getLogs(String logStore,String topic,int page,int pageSize, int timeStart, int timeEnd,String query) throws Exception;
    abstract public Map<String,Object> getJsonLogs(String logStore,String topic,int page,int pageSize, int timeStart, int timeEnd,String query,Class clazz) throws Exception;
    abstract public Map queryPage(String logStore,String topic,Integer timeStart,Integer timeEnd,String query,Class clazz) throws Exception;
}
